import request from './request'

// 登录
export const login = (username, password) => {
  return request.post('/auth/login', { username, password })
}

// 退出登录
export const logout = () => {
  return request.post('/auth/logout')
}

// 获取当前用户信息
export const getCurrentUser = () => {
  return request.get('/auth/me')
}